package com.yc.user.vo;

import com.yc.dept.entity.Dept;
import com.yc.post.entity.Post;
import com.yc.role.entity.Role;
import com.yc.user.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class UserVo extends User {
    @Serial
    private static final long serialVersionUID = -8878167206877326738L;

    private Dept dept;
    private Post post;

    private List<Role> roleList;

    public UserVo(User user) {
        super(user);
    }
}
